package router

import (
	"net/http"
	"user/controller"
	"user/logger"
)

func RegisterRouters() {
	http.HandleFunc("/", logger.LoggerWrapper(controller.GetUsers))
	http.HandleFunc("/create/", logger.LoggerWrapper(controller.AddUser))
	http.HandleFunc("/delete/", logger.LoggerWrapper(controller.DelUser))
	http.HandleFunc("/edit/", logger.LoggerWrapper(controller.EditUser))
}
